package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.behavior.BehaviorAddDto;
import com.teacher.pojo.dto.behavior.BehaviorGetDto;
import com.teacher.pojo.entity.Behavior;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.behavior.BehaviorGetVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 日常行为规范-扣分	 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-07-30
 */
public interface IBehaviorService extends IService<Behavior> {

    /**
     * 添加日常行为规范
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(BehaviorAddDto dto);

    /**
     * 查询日常行为规范
     *
     * @param dto
     * @return
     */
    CommonResult<IPage<BehaviorGetVo>> getPage(BehaviorGetDto dto);

    /**
     * 导入日常行为规范
     *
     * @param file
     * @return
     */
    CommonResult<String> upload(MultipartFile file);
}
